package com.mgface.framework.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class SBDServlet extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7081259628695885959L;
	private static final Logger log = LogManager.getLogger(SBDServlet.class);
	@Override
	public void init(ServletConfig config) throws ServletException {
		log.info("SBDServlet初始化......");
		super.init(config);
	}

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		resp.setContentType("text/html; charset=UTF-8");
		PrintWriter out = resp.getWriter();
		out.println("");
		out.println("SBDServlet。。。。");
		out.flush();
		out.close();
	}
	
}
